package android.pot.com.smartcar.base;

/**
 * Created by zhaoshilu on 2017/9/2.
 */

public class CommonListner {

    private static CommonListner instance;

    public static CommonListner instance() {
        if (instance == null) {
            instance = new CommonListner();
        }
        return instance;
    }

    public interface  RefreshListeners{
        void ready(String curCity);
    }

    private  RefreshListeners  listeners;

    public  RefreshListeners getRefreshListeners() {
        return listeners;
    }

    public  void setRefreshListeners(RefreshListeners listeners) {
        this.listeners = listeners;
    }


    public interface  LoginOutListener{
        void ready();
    }

    private  LoginOutListener  loginOutListener;

    public  LoginOutListener getLoginOutListeners() {
        return loginOutListener;
    }

    public  void setLoginOutListeners(LoginOutListener listeners) {
        this.loginOutListener = listeners;
    }

    public interface  LoginInListener{
        void ready();
    }

    private  LoginInListener  loginInListener;

    public  LoginInListener getLoginInListener() {
        return loginInListener;
    }

    public  void setLoginInListeners(LoginInListener listeners) {
        this.loginInListener = listeners;
    }

}
